public class BubbleSort{
	public static void main(String[] args) {
		int[] arr = {24,69,80,57,13};
		int len = arr.length-1;
		for (int i = 0; i < arr.length - 1 ; i++) {
			int currentIndex = 0; 
		 	for (int j = 0; j < len ; j++ ) {
		 		if(arr[j] > arr[j+1]){
		 			int temp = arr[j];
		 			arr[j] = arr[j+1];
		 			arr[j+1] = temp;
		 			currentIndex = j;
		 		}
		 	}
		 	
		 	len = currentIndex;
		}
		for (int i = 0; i < arr.length  ; i++) {
			System.out.println(arr[i]); 	
		} 
	}
}